<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="Xenon Boostrap Admin Panel" />
		<meta name="author" content="" />
		<title>房屋网-后台系统</title>
        <!--  <#include "/admin/include/topStyle.html"/>-->
	</head>

	<body class="page-body">
		<div class="page-container">
            <!--  <#include "/admin/include/menu.html"/>-->
			<div class="main-content">
				<!-- User Info, Notifications and Menu Bar -->
              <!--  <#include "/admin/include/userInfo.html"/>

				<div class="page-title">
					<div class="breadcrumb-env pull-left">
						<ol class="breadcrumb bc-1">
							  <#include "/admin/include/homepage.html"/>
							<li>
								<a href="#">直通车</a>
							</li>
							<li class="active">
								<strong>充值记录</strong>
							</li>
						</ol>
					</div>
					<div class="breadcrumb-env pull-right">
						<ol class="breadcrumb bc-1">
							<li class="active">共充值 <strong style="color:red;"> ${(count/100)!0} </strong> 人民币，获得<span style="color:red;">${(buyCount)!0}</span>充值新币，<span style="color:red;">${(giveCount)!0}</span>赠送新币</p></li>
							<li class="active">共 <strong style="color:red;"> ${datas.totalElements!} </strong> 条记录</li>
						</ol>
					</div>
				</div>
				-->
				<a class="btn btn-secondary" href="/exportExcel">导出EXCEL</a>
				<div class="panel">
                    <form id="key_from" action="/list" method="post" onsubmit="return toVaild();">
						<input type="hidden"  id="deputyId" value="${(condition.deputyId)!''}" />
						<input type="hidden"  id="majordomoId" value="${(condition.majordomoId)!''}" />
						<input type="hidden"  id="storefrontId" value="${(condition.storefrontId)!''}" />
						<input type="hidden"  id="storegroupId" value="${(condition.storegroupId)!''}" />

						<input type="hidden" name="totalPages" id="totalPages" value="${datas.totalPages!}"/>
                        <input type="hidden" name="page" id="page" value="0"/>
                        <table class="table">
						<tbody>
							<tr>
								<div class="form-group col-md-3" >
									<div class="input-group">
										<div class="input-group-addon">副总区</div>
										<select class="form-control" name="deputyId" id="organization82" onchange="selectDeputy();">
											<!--<option value=''>不限</option>-->
										</select>
									</div>
								</div>
								<div class="form-group col-md-3" >
									<div class="input-group">
										<div class="input-group-addon">总监区</div>
										<select class="form-control" name="majordomoId" id="organization83" onchange="selectMajordomo();">
											<!--<option value=''>不限</option>-->
										</select>
									</div>
								</div>
								<div class="form-group col-md-3" >
									<div class="input-group">
										<div class="input-group-addon">门店</div>
										<select class="form-control" name="storefrontId" id="organization85" onchange="selectStorefront();">
											<!--<option value=''>不限</option>-->
										</select>
									</div>
								</div>
								<div class="form-group col-md-3" >
									<div class="input-group">
										<div class="input-group-addon">店组</div>
										<select class="form-control" name="storegroupId" id="organization88">
											<!--<option value=''>不限</option>-->
										</select>
									</div>
								</div>
							</tr>
							<tr>
								<div class="form-group col-md-6">
									<div class="input-group">
										<div class="input-group-addon">充值时间:</div>
										<input type="text" id="dateFrom" value="${(condition.createDateFrom?string('yyyy-MM-dd'))!}"
											placeholder="如：2017-01-01" name="createDateFrom"
											class="datetimepicker" />
										-
										<input type="text" id="dateTo"
											value="${(condition.createDateTo?string('yyyy-MM-dd'))!}"
											placeholder="如：2018-01-01" name="createDateTo"
											class="datetimepicker" />
									</div>
								</div>
								<div class="form-group col-md-4">
									<div class="input-group">
										<div class="input-group-addon">经纪人</div>
										<input type="text" class="form-control" name="belongerInfo" id="belongerInfo" type="text" placeholder="请输入经纪人姓名,工号或手机号码查询" value="${condition.belongerInfo!}">
									</div>
								</div>
								<div class="form-group col-md-2">
									<div class="input-group">
										<input class="btn btn-primary" type="submit" value="查询"/>
										<input class="btn btn-primary" id="key_reset" type="button" value="重置"/>
									</div>
								</div>
							</tr>
							</tbody>
						</table>
					</form>
                    
                    
                    
					<div class="table-responsive" id="cityContent">
                        <table class="table table-hover table-model-2">
                            <thead>
                            <tr>
                          		<th data-priority="1" class="text-center">姓名</th>
                                <th data-priority="1" class="text-center">工号</th>
                                <th data-priority="1" class="text-center">电话</th>
                                <th data-priority="1" class="text-center">充值时间</th>
                                <th data-priority="1" class="text-center">充值金额(￥)</th>
                                <th data-priority="1" class="text-center">获得新币</th>
                            </tr>
                            </thead>
                            <tbody id="key_result">
								<#include "/pay/pagination.html"/>
                            </tbody>
                        </table>
                    </div>
					<!-- 分页start -->
					<div class="row">
						<div class="col-xs-12">
							<div id="key_pagination"></div>
						</div>
					</div>
                    <!-- 分页end -->
				</div>
				<!-- Main Footer -->
			</div>
		</div>
         
<!--  <#include "/admin/include/footerStyle.html"/>-->
<script src="/js/jquery.form.min.js"></script>
<script src="/js/Page.js"></script>
<script src="/js/calendar.js"></script>
<script src="/js/organizationRelation.js"></script>
<script src="/js/organizationRelation.js"></script>
<script type="text/javascript">

	var pager = new Pager("page","totalPages","key_result","key_pagination");
	pagination(0,${datas.totalPages!},"/pagination");
	
	$("#key_reset").click(function () {
        $("#dateFrom").val("");
        $("#dateTo").val("");
        $("#belongerInfo").val("");
        $("#organization82").val("");
        $("#organization83").val("");
        $("#organization85").val("");
        $("#organization88").val("");
        $("#key_from").submit();
    });


</script>
</body>
</html>